<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isErrorPage="true"%>
<%@ page import="fy.bean.*,java.util.*,fy.util.*"%>
<%
      

    SfgkBean sfgk = new SfgkBean();
    List<SfgkBean> list = sfgk.findAllByLbForPX("ggl"); 
   
    int id =Integer.parseInt(request.getParameter("id"));
    SfgkBean sfgk1 = new SfgkBean();
    sfgk1 = sfgk1.findNewsById(id);
   	SfgkBean sfgk2 = sfgk1.findPreNewsById(list,id);
    SfgkBean sfgk3 = sfgk1.findNextNewsById(list,id); 
    
	PictureBean picture1 = new PictureBean();
	List<PictureBean> tplb1 = picture1.findsfgkByLb("dblb");
	PictureBean picture3 = new PictureBean();
	List<PictureBean> tplb3 = picture1.findsfgkByLb("lmtp");
%>





<!DOCTYPE html>
<html>
<head>
<title>公告栏正文-赣州经济技术开发区人民法院</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../css/1.css">
<link rel="stylesheet" type="text/css" href="../css/2.css">
<link rel="stylesheet" type="text/css" href="../css/byjs.css">
<link rel="stylesheet" type="text/css" href="../css/new.css">
<link rel="shortcut icon" type="image/x-icon" href="../img/title.jpg">
<link rel="shortcut icon" type="image/x-icon" href="img/title.jpg">
<link rel="stylesheet" type="text/css" href="../css/1.css">
<link rel="stylesheet" type="text/css" href="../css/2.css">
<link rel="stylesheet" type="text/css" href="../css/3.css">

<link rel="stylesheet" href="../css/css5.css" />

<link rel="stylesheet" type="text/css" href="../css/css2.5.css"
	media="screen" />
<link rel="stylesheet" type="text/css" href="../css/byjs.css">

<script src="../js/jquery.js"></script>
<script src="../js/index.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" rel="stylesheet" href="../css/carousel.css">

<link rel="stylesheet" type="text/css" href="../css/zzsc.css" />
<link type="text/css" rel="stylesheet" href="../css/sfgk.css">


</head>

<body>
	<div>
		<div class="top">
			<div class="c-banner">
				<div class="top_up">
					<div class="top_hare">
						<div class="top_picture">
							<img src="../img/国徽.png">
						</div>
						<div class="top_words">
							<span>赣州经济技术开发区人民法院</span>
						</div>

					</div>
				</div>
				<div class="banner">
					<ul>
						<%
							for (int i = 0; i < tplb1.size(); i++) {
						%>

						<li><img src="<%=tplb1.get(i).getPicture()%>"></li>
						<%
										}
						%>
					</ul>
				</div>

				<script type="text/javascript" src="../js/jquery.js"></script>
				<script type="text/javascript">
					//定时器返回值
					var time = null;
					//记录当前位子
					var nexImg = 0;
					//用于获取轮播图图片个数
					var imgLength = $(".c-banner .banner ul li").length;
					//当时动态数据的时候使用,上面那个删除
					// var imgLength =0;
					//设置底部第一个按钮样式
					$(".c-banner .jumpBtn ul li[jumpImg=" + nexImg + "]").css(
							"background-color", "black");

					//页面加载
					$(document).ready(function() {
						// dynamicData();
						//启动定时器,设置时间为3秒一次
						time = setInterval(intervalImg, 3000);
					});

					//点击上一张
					$(".preImg").click(
							function() {
								//清楚定时器
								clearInterval(time);
								var nowImg = nexImg;
								nexImg = nexImg - 1;
								console.log(nexImg);
								if (nexImg < 0) {
									nexImg = imgLength - 1;
								}
								//底部按钮样式设置
								$(".c-banner .jumpBtn ul li").css(
										"background-color", "white");
								$(
										".c-banner .jumpBtn ul li[jumpImg="
												+ nexImg + "]").css(
										"background-color", "black");

								//将当前图片试用绝对定位,下一张图片试用相对定位
								$(".c-banner .banner ul img").eq(nowImg).css(
										"position", "absolute");
								$(".c-banner .banner ul img").eq(nexImg).css(
										"position", "relative");

								//轮播淡入淡出
								$(".c-banner .banner ul li").eq(nexImg).css(
										"display", "block");
								$(".c-banner .banner ul li").eq(nexImg).stop()
										.animate({
											"opacity" : 1
										}, 1000);
								$(".c-banner .banner ul li").eq(nowImg).stop()
										.animate(
												{
													"opacity" : 0
												},
												1000,
												function() {
													$(".c-banner ul li").eq(
															nowImg).css(
															"display", "none");
												});

								//启动定时器,设置时间为3秒一次
								time = setInterval(intervalImg, 3000);
							})

					//点击下一张
					$(".nexImg").click(function() {
						clearInterval(time);
						intervalImg();
						time = setInterval(intervalImg, 3000);
					})

					//轮播图
					function intervalImg() {
						if (nexImg < imgLength - 1) {
							nexImg++;
						} else {
							nexImg = 0;
						}

						//将当前图片试用绝对定位,下一张图片试用相对定位
						$(".c-banner .banner ul img").eq(nexImg - 1).css(
								"position", "absolute");
						$(".c-banner .banner ul img").eq(nexImg).css(
								"position", "relative");

						$(".c-banner .banner ul li").eq(nexImg).css("display",
								"block");
						$(".c-banner .banner ul li").eq(nexImg).stop().animate(
								{
									"opacity" : 1
								}, 1000);
						$(".c-banner .banner ul li").eq(nexImg - 1).stop()
								.animate(
										{
											"opacity" : 0
										},
										1000,
										function() {
											$(".c-banner .banner ul li").eq(
													nexImg - 1).css("display",
													"none");
										});
						$(".c-banner .jumpBtn ul li").css("background-color",
								"white");
						$(".c-banner .jumpBtn ul li[jumpImg=" + nexImg + "]")
								.css("background-color", "black");
					}

					//轮播图底下按钮
					//动态数据加载的试用应放在请求成功后执行该代码,否则按钮无法使用
					$(".c-banner .jumpBtn ul li")
							.each(
									function() {
										//为每个按钮定义点击事件
										$(this)
												.click(
														function() {
															clearInterval(time);
															$(
																	".c-banner .jumpBtn ul li")
																	.css(
																			"background-color",
																			"white");
															jumpImg = $(this)
																	.attr(
																			"jumpImg");
															if (jumpImg != nexImg) {
																var after = $(
																		".c-banner .banner ul li")
																		.eq(
																				jumpImg);
																var befor = $(
																		".c-banner .banner ul li")
																		.eq(
																				nexImg);

																//将当前图片试用绝对定位,下一张图片试用相对定位
																$(
																		".c-banner .banner ul img")
																		.eq(
																				nexImg)
																		.css(
																				"position",
																				"absolute");
																$(
																		".c-banner .banner ul img")
																		.eq(
																				jumpImg)
																		.css(
																				"position",
																				"relative");

																after
																		.css(
																				"display",
																				"block");
																after
																		.stop()
																		.animate(
																				{
																					"opacity" : 1
																				},
																				1000);
																befor
																		.stop()
																		.animate(
																				{
																					"opacity" : 0
																				},
																				1000,
																				function() {
																					befor
																							.css(
																									"display",
																									"none");
																				});
																nexImg = jumpImg;
															}
															$(this)
																	.css(
																			"background-color",
																			"black");
															time = setInterval(
																	intervalImg,
																	3000);
														});
									});
				</script>
			</div>
		</div>
		<div class="content_box">
			<div class="category">
				<div id="nav">
					<ul style="font: black">
						<li><a href="../index.jsp"> 首页</a></li>
						<li><a href="../courtintroduce/courtintroduce.jsp"> 法院介绍
						</a></li>
						<li><a href="../dwgz/dwgz.jsp"> 党建引领 </a></li>
						<li><a href="../newscenter/newcenter.jsp"> 新闻中心 </a></li>
						<li><a href="../sfgk/ggl.jsp"> 司法公开 </a></li>
						<li style="width: 140px;"><a href="../ssfwzx/yyla.jsp">
								诉讼服务中心 </a></li>
						<li><a href="../fywh/whzb.jsp"> 法院文化 </a></li>
						<li style="border-right: 0px"><a href="../zxhd/yzxx.jsp">
								在线互动 </a></li>


					</ul>
				</div>
				<div class="sfgk1"></div>
				<div class="sfgk2">
					<div class="new1">
						<div>
							<a href="ggl.jsp" class="sfgk3">&nbsp; &nbsp;司法公开</a>
						</div>
					</div>

					<div class="new3">
						<a href="ggl.jsp" class="sfgk4">
							<center>公告栏</center>
						</a>
					</div>

					<div class="new3">
						<a href="http://www.jxfy.gov.cn/tingshen/index.jsp" class="sfgk4"><center>
								庭审直播</center></a>
					</div>

					<div class="new3">
						<a href="http://zxgk.court.gov.cn/" class="sfgk4"><center>被执行人信息查询</center></a>
					</div>
					<div class="new4" id="#boxshadow">
						<%
							for (int i = 0; i < tplb3.size(); i++) {
						%>
						<div class="new4">
							<a href="<%=tplb3.get(i).getLink()%>"> <img
								src="<%=tplb3.get(i).getPicture()%>">
							</a>
						</div>
						<%
										}
						%>
					</div>
					<div class="tb" style="margin-top: 380px;">
						<a href="../zxhd/yzxx.jsp"><img src="../img/1.gif"></a>
					</div>
					<div class="tb" style="margin-top: 380px;">
						<a href="http://jubao.court.gov.cn/E7J"><img
							src="../img/2.gif"></a>
					</div>
				</div>
				
				<div class="new_son_content">
					<div class="new_son_content_box">

						<div class="new_son_content_littlelitle">
							<a href="../index.jsp">首页</a> >><a href=" ggl.jsp">司法公开 </a> >> <a
								href="ggl.jsp"><%=sfgk1.getCategoryname()%></a>
						</div>


					<div class="new_son_content_title">

						<%=sfgk1.getTitle()%>

					</div>
					<div class="new_son_content_author">
						<%= sfgk1.getSource()%>
						&nbsp;
						<%= sfgk1.getAuthor()%>
						&nbsp;
						<%= sfgk1.getTime()%>
					</div>

                     <div style="clear: both;"></div>
					<div class="new17">
						&nbsp;&nbsp;&nbsp;
						<%=sfgk1.getContent()%>
					</div>

					
				</div>
				
			</div>
			<div class="new18">
						<ul>
							<%if(sfgk2!=null){%>
							<li><strong>上一篇：</strong><a
								href="gglz.jsp?id=<%= sfgk2.getId()%>"><%= sfgk2.getTitle()%></a></li>
							<%}else{%>
							<li><strong>上一篇：</strong>没有了</li>
							<%}%>

							<%if(sfgk3!=null){%>
							<li><strong>下一篇：</strong><a
								href="gglz.jsp?id=<%= sfgk3.getId()%>"><%= sfgk3.getTitle()%></a></li>
							<%}else{%>
							<li><strong>下一篇：</strong>没有了</li>
							<%}%>
						</ul>

					</div>
		</div>
	</div>
	</div>
	
	<div style="clear: both;"></div>
<div class="tail_son">
		<div class="tail_line"></div>
		<div class="div22">
			<div class="tail_son_content">
				<div class="tail_son_picture">
					<a
						href="http://bszs.conac.cn/sitename?method=show&id=29975AEF1BAB5BBDE053012819AC83CC">
						<img src="../img\a1.jpg">
					</a>
				</div>
				<div class="tail_son_words">
					Copyright 2014 www.gzjkqfy.gov.cn All Rights Reserved<br>
					赣ICP备14009074号<br> 赣州经济技术开发区人民法院 主办<br> 电话：0797-8375993 <br>
					技术支持：深圳市易当家软件开发有限公司
				</div>
			</div>
		</div>
	</div>


	</div>
	<script>
		(function($) {
			$.fn.scrollTop = function(options) {
				var defaults = {
					speed : 30
				}
				var opts = $.extend(defaults, options);
				this.each(function() {
					var $timer;
					var scroll_top = 0;
					var obj = $(this);
					var $height = obj.find("ul").height();
					obj.find("ul").clone().appendTo(obj);
					obj.hover(
							function() {
								clearInterval($timer);
							},
							function() {
								$timer = setInterval(function() {
									scroll_top++;
									if (scroll_top > $height) {
										scroll_top = 0;
									}
									obj.find("ul").first().css("margin-top",
											-scroll_top);
								}, opts.speed);
							}).trigger("mouseleave");
				})
			}
		})(jQuery)
	</script>
	<script>
		$(function () {
			$(".ktgg-boder").scrollTop({
				speed: 30 //数值越大 速度越慢
			});
		})
	</script>

<script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
<script type="text/javascript">
	$(document).ready(function () {
		$('#slideshow').cycle({
			fx: 'fade',
			speed: 'slow',
			timeout: 5000,
			pager: '#slider_nav',
			pagerAnchorBuilder: function (idx, slide) {
				return '#slider_nav li:eq(' + (idx) + ') a';
			}
		});
	});	
</script>
<script src="js/move.js"></script>

</body>

</html>